@section('content')
<div class="am-g m-cart">
	<div class="am-u-md-12">
		<div class="m-cart-hd am-cf">
			<h1>订单确认</h1>
			<!-- 
			<span class="free-tip">订单满500元免运费</span>
			 -->
		</div>
	</div>
	<form method="post" action="{{URL::to('order/pay')}}" id="order-pay"  name="order-pay">
	<div class="am-u-md-12 m-order-fragment">
		<div class="m-order-pay-tip">
			非常感谢您的订单，请在60分钟之内完成支付，否则订单将会被自动取消。<br>
			如果您在付款时受到支付限额影响而无法完成付款，这是由您所使用银行卡的网上支付限额决定的。请咨询您的银行卡开户行。<br>
			如需帮助，请致电客服中心：400-710-8990
		</div>
		<div class="m-order-info">
		订单状态：等待支付<br>
		订单日期：{{date('Y-m-d', strtotime($order->created_at))}}<br>
		订单号：{{$order->id}}<br>
		订单金额：¥{{number_format($order->freight + $order->product_total_price,2)}}
		</div>
	</div>
	<div class="am-u-md-12 m-order-pay">
		<ul class="m-banks-box am-cf">
			<li>
				<input type="radio" checked="checked" name="pay_type" value="1" alt="支付宝">
				<i class="m-bank-icon alipay"></i>
			</li>
		</ul>
		<!-- 
		<ul class="m-banks-box am-cf">
			<li>
				<input type="radio" name="pay_type" value=ICBCB2C alt="中国工商银行">
				<i class="m-bank-icon icbc"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="CMB" alt="招商银行">
				<i class="m-bank-icon cmb"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="CCB" alt="中国建设银行">
				<i class="m-bank-icon ccb"></i>
			</li>
			
			<li>
				<input type="radio" name="pay_type" value="BOCB2C" alt="中国银行">
				<i class="m-bank-icon boc"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="ABC" alt="中国农业银行">
				<i class="m-bank-icon abc"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="COMM-DEBIT" alt="交通银行">
				<i class="m-bank-icon comm"></i>
			</li>
			
			
			<li>
				<input type="radio" name="pay_type" value="SPDB" alt="上海浦东发展银行">
				<i class="m-bank-icon spdb"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="GDB" alt="广发银行">
				<i class="m-bank-icon gdb"></i>
			</li>
			
			<li>
				<input type="radio" name="pay_type" value="POSTGC" alt="中国邮政储蓄银行">
				<i class="m-bank-icon psbc"></i>
			</li>
			
			
			<li>
				<input type="radio" name="pay_type" value="CITIC-DEBIT" alt="中信银行">
				<i class="m-bank-icon citic"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="CIB" alt="兴业银行">
				<i class="m-bank-icon cib"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="CMBC" alt="中国民生银行">
				<i class="m-bank-icon cmbc"></i>
			</li>
			
			
			<li>
				<input type="radio" name="pay_type" value="CEB-DEBIT" alt="中国光大银行">
				<i class="m-bank-icon ceb"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="SPABANK" alt="平安银行">
				<i class="m-bank-icon spa"></i>
			</li>
			
			
			<li>
				<input type="radio" name="pay_type" value="BJBANK" alt="北京银行">
				<i class="m-bank-icon bjbank"></i>
			</li>
			
			
			<li>
				<input type="radio" name="pay_type" value="SHBANK" alt="上海银行">
				<i class="m-bank-icon shbank"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="WZCBB2C-DEBIT" alt="温州银行">
				<i class="m-bank-icon wzcbb2c"></i>
			</li>
			<li>
				<input type="radio" name="pay_type" value="NBBANK" alt="宁波银行">
				<i class="m-bank-icon nbbank"></i>
			</li>
		</ul>
		 -->
		<!--  
		<div class="pay-type">
			<input type="radio" checked="checked" name="pay_type" value="1">
			<img alt="" src="{{URL::to('assets/i/alipay.png')}}">
		</div>
		<div class="pay-type">
			<input type="radio" name="pay_type" value="2">
			<img alt="" src="{{URL::to('assets/i/unionpay.png')}}">
		</div>
		-->
	</div>
	<input type="hidden" name="subject" value="{{$subject}}"/>
	<input type="hidden" name="out_trade_no" value="{{$order->id}}"/>
	<input type="hidden" name="total_fee" value="{{$order->freight + $order->product_total_price}}"/>
    <div class="am-u-md-12 ">
    	<button type="submit" class="m-btn" id="order-submit-btn"  data-am-loading="{spinner: 'circle-o-notch', loadingText: '提交中...'}">现在支付</button>
    </div>
    {{Form::token()}}
    </form>
</div>

@stop

@section('script')
<script type="text/javascript">
$(function(){

});
</script>
@stop
